package com.gxa.zhonglong.service.impl;

import com.gxa.zhonglong.mapper.CheckIoVOMapper;
import com.gxa.zhonglong.pojo.CheckIoVO;
import com.gxa.zhonglong.pojo.CheckPrVO;
import com.gxa.zhonglong.pojo.InventoryOut;
import com.gxa.zhonglong.pojo.PurchaseReturn;
import com.gxa.zhonglong.service.CheckIoVOService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service("CheckIoVOService")
public class CheckIoVOServiceImpl implements CheckIoVOService {

    @Autowired
    CheckIoVOMapper checkIoVOMapper;


    @Override
    public Map<String, List<CheckIoVO>> selectAll(Integer page, Integer size) {
        List<CheckIoVO> checkIoVOS = checkIoVOMapper.selectAll(page, size);
        Map<String, List<CheckIoVO>> map =  new HashMap<>();
        map.put("CheckIoVo",checkIoVOS);
        return map;
    }

    @Override
    public Map<String, List<CheckIoVO>> selectByCondition(InventoryOut inventoryOut) {
        List<CheckIoVO> checkIoVOS = checkIoVOMapper.selectByCondition(inventoryOut);
        Map<String, List<CheckIoVO>> map =  new HashMap<>();
        map.put("CheckIoVo",checkIoVOS);
        return map;
    }
}
